namespace MyBlog.DataEntity
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;

    public partial class Tbl_AlbumDetail
    {
        public Tbl_AlbumDetail()
        {
            Tbl_PicComment = new HashSet<Tbl_PicComment>();
        }

        public int ID { get; set; }

        public int GroupID { get; set; }

        [StringLength(250)]
        public string Description { get; set; }

        [Required]
        [StringLength(50)]
        public string PicName { get; set; }

        [Required]
        [StringLength(10)]
        public string Postfix { get; set; }

        [Column(TypeName = "image")]
        [Required]
        public byte[] Content { get; set; }

        public DateTime UploadTime { get; set; }

        public virtual Tbl_Album Tbl_Album { get; set; }

        public virtual ICollection<Tbl_PicComment> Tbl_PicComment { get; set; }
    }
}
